#!/usr/bin/expect -f
set copy_file [lindex $argv 0]
set password 123456
set computername gwac@10.36.3.93
set filename  $copy_file
set term_dir /data/60cmtest/
spawn scp  -r  $filename  $computername:$term_dir
set timeout 300
expect {
"*yes/no*" {send "yes\r";exp_continue}
"$computername's password:" {send "$password\r";exp_continue}
}

